<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QTreeWidgetItem Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTreeWidgetItem Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QTreeWidgetItem class provides an item for use with the
<a href="qtreewidget.html">QTreeWidget</a> convenience class.
<a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qtreewidgetitem.html#ChildIndicatorPolicy-enum">ChildIndicatorPolicy</a></b> { ShowIndicator, DontShowIndicator, DontShowIndicatorWhenChildless }</li><li><div class="fn" />enum <b><a href="qtreewidgetitem.html#ItemType-enum">ItemType</a></b> { Type, UserType }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem">__init__</a></b> (<i>self</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-2">__init__</a></b> (<i>self</i>, QStringList&#160;<i>strings</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-3">__init__</a></b> (<i>self</i>, QTreeWidget&#160;<i>parent</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-4">__init__</a></b> (<i>self</i>, QTreeWidget&#160;<i>parent</i>, QStringList&#160;<i>strings</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-5">__init__</a></b> (<i>self</i>, QTreeWidget&#160;<i>parent</i>, QTreeWidgetItem&#160;<i>preceding</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-6">__init__</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>parent</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-7">__init__</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>parent</i>, QStringList&#160;<i>strings</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-8">__init__</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>parent</i>, QTreeWidgetItem&#160;<i>preceding</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#QTreeWidgetItem-9">__init__</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>other</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#addChild">addChild</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>child</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#addChildren">addChildren</a></b> (<i>self</i>, list-of-QTreeWidgetItem&#160;<i>children</i>)</li><li><div class="fn" />QBrush <b><a href="qtreewidgetitem.html#background">background</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QColor <b><a href="qtreewidgetitem.html#backgroundColor">backgroundColor</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />Qt.CheckState <b><a href="qtreewidgetitem.html#checkState">checkState</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QTreeWidgetItem <b><a href="qtreewidgetitem.html#child">child</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />int <b><a href="qtreewidgetitem.html#childCount">childCount</a></b> (<i>self</i>)</li><li><div class="fn" />ChildIndicatorPolicy <b><a href="qtreewidgetitem.html#childIndicatorPolicy">childIndicatorPolicy</a></b> (<i>self</i>)</li><li><div class="fn" />QTreeWidgetItem <b><a href="qtreewidgetitem.html#clone">clone</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtreewidgetitem.html#columnCount">columnCount</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qtreewidgetitem.html#data">data</a></b> (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>role</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#emitDataChanged">emitDataChanged</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.ItemFlags <b><a href="qtreewidgetitem.html#flags">flags</a></b> (<i>self</i>)</li><li><div class="fn" />QFont <b><a href="qtreewidgetitem.html#font">font</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QBrush <b><a href="qtreewidgetitem.html#foreground">foreground</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QIcon <b><a href="qtreewidgetitem.html#icon">icon</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />int <b><a href="qtreewidgetitem.html#indexOfChild">indexOfChild</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>achild</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#insertChild">insertChild</a></b> (<i>self</i>, int&#160;<i>index</i>, QTreeWidgetItem&#160;<i>child</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#insertChildren">insertChildren</a></b> (<i>self</i>, int&#160;<i>index</i>, list-of-QTreeWidgetItem&#160;<i>children</i>)</li><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#isDisabled">isDisabled</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#isExpanded">isExpanded</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#isFirstColumnSpanned">isFirstColumnSpanned</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#isHidden">isHidden</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#isSelected">isSelected</a></b> (<i>self</i>)</li><li><div class="fn" />QTreeWidgetItem <b><a href="qtreewidgetitem.html#parent">parent</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#read">read</a></b> (<i>self</i>, QDataStream&#160;<i>in</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#removeChild">removeChild</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>child</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setBackground">setBackground</a></b> (<i>self</i>, int&#160;<i>column</i>, QBrush&#160;<i>brush</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setBackgroundColor">setBackgroundColor</a></b> (<i>self</i>, int&#160;<i>column</i>, QColor&#160;<i>color</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setCheckState">setCheckState</a></b> (<i>self</i>, int&#160;<i>column</i>, Qt.CheckState&#160;<i>state</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setChildIndicatorPolicy">setChildIndicatorPolicy</a></b> (<i>self</i>, ChildIndicatorPolicy&#160;<i>policy</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setData">setData</a></b> (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>role</i>, QVariant&#160;<i>value</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setDisabled">setDisabled</a></b> (<i>self</i>, bool&#160;<i>disabled</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setExpanded">setExpanded</a></b> (<i>self</i>, bool&#160;<i>aexpand</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setFirstColumnSpanned">setFirstColumnSpanned</a></b> (<i>self</i>, bool&#160;<i>aspan</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setFlags">setFlags</a></b> (<i>self</i>, Qt.ItemFlags&#160;<i>aflags</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setFont">setFont</a></b> (<i>self</i>, int&#160;<i>column</i>, QFont&#160;<i>afont</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setForeground">setForeground</a></b> (<i>self</i>, int&#160;<i>column</i>, QBrush&#160;<i>brush</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setHidden">setHidden</a></b> (<i>self</i>, bool&#160;<i>ahide</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setIcon">setIcon</a></b> (<i>self</i>, int&#160;<i>column</i>, QIcon&#160;<i>aicon</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setSelected">setSelected</a></b> (<i>self</i>, bool&#160;<i>aselect</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setSizeHint">setSizeHint</a></b> (<i>self</i>, int&#160;<i>column</i>, QSize&#160;<i>size</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a></b> (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>astatusTip</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setText">setText</a></b> (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>atext</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setTextAlignment">setTextAlignment</a></b> (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>alignment</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setTextColor">setTextColor</a></b> (<i>self</i>, int&#160;<i>column</i>, QColor&#160;<i>color</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setToolTip">setToolTip</a></b> (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>atoolTip</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a></b> (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>awhatsThis</i>)</li><li><div class="fn" />QSize <b><a href="qtreewidgetitem.html#sizeHint">sizeHint</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#sortChildren">sortChildren</a></b> (<i>self</i>, int&#160;<i>column</i>, Qt.SortOrder&#160;<i>order</i>)</li><li><div class="fn" />QString <b><a href="qtreewidgetitem.html#statusTip">statusTip</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QTreeWidgetItem <b><a href="qtreewidgetitem.html#takeChild">takeChild</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />list-of-QTreeWidgetItem <b><a href="qtreewidgetitem.html#takeChildren">takeChildren</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qtreewidgetitem.html#text">text</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />int <b><a href="qtreewidgetitem.html#textAlignment">textAlignment</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QColor <b><a href="qtreewidgetitem.html#textColor">textColor</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QString <b><a href="qtreewidgetitem.html#toolTip">toolTip</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QTreeWidget <b><a href="qtreewidgetitem.html#treeWidget">treeWidget</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtreewidgetitem.html#type">type</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qtreewidgetitem.html#whatsThis">whatsThis</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" /><b><a href="qtreewidgetitem.html#write">write</a></b> (<i>self</i>, QDataStream&#160;<i>out</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#__ge__">__ge__</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>other</i>)</li><li><div class="fn" />bool <b><a href="qtreewidgetitem.html#__lt__">__lt__</a></b> (<i>self</i>, QTreeWidgetItem&#160;<i>other</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QTreeWidgetItem class provides an item for use with the
<a href="qtreewidget.html">QTreeWidget</a> convenience class.</p>
<p>Tree widget items are used to hold rows of information for tree
widgets. Rows usually contain several columns of data, each of
which can contain a text label and an icon.</p>
<p>The QTreeWidgetItem class is a convenience class that replaces
the QListViewItem class in Qt 3. It provides an item for use with
the <a href="qtreewidget.html">QTreeWidget</a> class.</p>
<p>Items are usually constructed with a parent that is either a
<a href="qtreewidget.html">QTreeWidget</a> (for top-level items) or
a QTreeWidgetItem (for items on lower levels of the tree). For
example, the following code constructs a top-level item to
represent cities of the world, and adds a entry for Oslo as a child
item:</p>
<pre class="cpp">
     <span class="type">QTreeWidgetItem</span> <span class="operator">*</span>cities <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTreeWidgetItem</span>(treeWidget);
     cities<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">0</span><span class="operator">,</span> tr(<span class="string">"Cities"</span>));
     <span class="type">QTreeWidgetItem</span> <span class="operator">*</span>osloItem <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTreeWidgetItem</span>(cities);
     osloItem<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">0</span><span class="operator">,</span> tr(<span class="string">"Oslo"</span>));
     osloItem<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">1</span><span class="operator">,</span> tr(<span class="string">"Yes"</span>));
</pre>
<p>Items can be added in a particular order by specifying the item
they follow when they are constructed:</p>
<pre class="cpp">
     <span class="type">QTreeWidgetItem</span> <span class="operator">*</span>planets <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTreeWidgetItem</span>(treeWidget<span class="operator">,</span> cities);
     planets<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">0</span><span class="operator">,</span> tr(<span class="string">"Planets"</span>));
</pre>
<p>Each column in an item can have its own background brush which
is set with the <a href="qtreewidgetitem.html#setBackground">setBackground</a>() function.
The current background brush can be found with <a href="qtreewidgetitem.html#background">background</a>(). The text label
for each column can be rendered with its own font and brush. These
are specified with the <a href="qtreewidgetitem.html#setFont">setFont</a>() and <a href="qtreewidgetitem.html#setForeground">setForeground</a>() functions,
and read with <a href="qtreewidgetitem.html#font">font</a>() and
<a href="qtreewidgetitem.html#foreground">foreground</a>().</p>
<p>The main difference between top-level items and those in lower
levels of the tree is that a top-level item has no <a href="qtreewidgetitem.html#parent">parent</a>(). This information can be
used to tell the difference between items, and is useful to know
when inserting and removing items from the tree. Children of an
item can be removed with <a href="qtreewidgetitem.html#takeChild">takeChild</a>() and inserted at a
given index in the list of children with the <a href="qtreewidgetitem.html#insertChild">insertChild</a>() function.</p>
<p>By default, items are enabled, selectable, checkable, and can be
the source of a drag and drop operation. Each item's flags can be
changed by calling <a href="qtreewidgetitem.html#setFlags">setFlags</a>() with the appropriate
value (see <a href="qt.html#ItemFlag-enum">Qt.ItemFlags</a>).
Checkable items can be checked and unchecked with the <a href="qtreewidgetitem.html#setCheckState">setCheckState</a>() function.
The corresponding <a href="qtreewidgetitem.html#checkState">checkState</a>() function
indicates whether the item is currently checked.</p>
<a id="subclassing" name="subclassing" />
<h3>Subclassing</h3>
<p>When subclassing QTreeWidgetItem to provide custom items, it is
possible to define new types for them so that they can be
distinguished from standard items. The constructors for subclasses
that require this feature need to call the base class constructor
with a new type value equal to or greater than <a href="qtreewidgetitem.html#ItemType-enum">UserType</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="ChildIndicatorPolicy-enum" />QTreeWidgetItem.ChildIndicatorPolicy</h3><table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QTreeWidgetItem.ShowIndicator</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The controls for expanding and collapsing will
be shown for this item even if there are no children.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QTreeWidgetItem.DontShowIndicator</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The controls for expanding and collapsing will
never be shown even if there are children. If the node is forced
open the user will not be able to expand or collapse the item.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QTreeWidgetItem.DontShowIndicatorWhenChildless</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">The controls for expanding and collapsing will
be shown if the item contains children.</td>
</tr>
</table>
<p>This enum was introduced or modified in Qt 4.3.</p>


<h3 class="fn"><a name="ItemType-enum" />QTreeWidgetItem.ItemType</h3><p>This enum describes the types that are used to describe tree
widget items.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QTreeWidgetItem.Type</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The default type for tree widget items.</td>
</tr>
<tr>
<td class="topAlign"><tt>QTreeWidgetItem.UserType</tt></td>
<td class="topAlign"><tt>1000</tt></td>
<td class="topAlign">The minimum value for custom types. Values
below UserType are reserved by Qt.</td>
</tr>
</table>
<p>You can define new user types in <a href="qtreewidgetitem.html">QTreeWidgetItem</a> subclasses to ensure
that custom items are treated specially; for example, when items
are sorted.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTreeWidgetItem" />QTreeWidgetItem.__init__ (<i>self</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>Constructs a tree widget item of the specified <i>type</i>. The
item must be inserted into a tree widget.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-2" />QTreeWidgetItem.__init__ (<i>self</i>, QStringList&#160;<i>strings</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>Constructs a tree widget item of the specified <i>type</i>. The
item must be inserted into a tree widget. The given list of
<i>strings</i> will be set as the item text for each column in the
item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-3" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidget.html">QTreeWidget</a>&#160;<i>parent</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a tree widget item of the specified <i>type</i> and
appends it to the items in the given <i>parent</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-4" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidget.html">QTreeWidget</a>&#160;<i>parent</i>, QStringList&#160;<i>strings</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a tree widget item of the specified <i>type</i> and
appends it to the items in the given <i>parent</i>. The given list
of <i>strings</i> will be set as the item text for each column in
the item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-5" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidget.html">QTreeWidget</a>&#160;<i>parent</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>preceding</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a tree widget item of the specified <i>type</i> and
inserts it into the given <i>parent</i> after the <i>preceding</i>
item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-6" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>parent</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a tree widget item and append it to the given
<i>parent</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-7" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>parent</i>, QStringList&#160;<i>strings</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a tree widget item and append it to the given
<i>parent</i>. The given list of <i>strings</i> will be set as the
item text for each column in the item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-8" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>parent</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>preceding</i>, int&#160;<i>type</i>&#160;=&#160;QTreeWidgetItem.Type)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a tree widget item of the specified <i>type</i> that
is inserted into the <i>parent</i> after the <i>preceding</i> child
item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#type">type</a>().</p>


<h3 class="fn"><a name="QTreeWidgetItem-9" />QTreeWidgetItem.__init__ (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>other</i>)</h3><p>Constructs a copy of <i>other</i>. Note that <a href="qtreewidgetitem.html#type">type</a>() and <a href="qtreewidgetitem.html#treeWidget">treeWidget</a>() are not
copied.</p>
<p>This function is useful when reimplementing <a href="qtreewidgetitem.html#clone">clone</a>().</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#data">data</a>()
and <a href="qtreewidgetitem.html#flags">flags</a>().</p>


<h3 class="fn"><a name="addChild" />QTreeWidgetItem.addChild (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>child</i>)</h3><p>The <i>child</i> argument has it's ownership transferred to Qt.</p><p>Appends the <i>child</i> item to the list of children.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#insertChild">insertChild</a>() and <a href="qtreewidgetitem.html#takeChild">takeChild</a>().</p>


<h3 class="fn"><a name="addChildren" />QTreeWidgetItem.addChildren (<i>self</i>, list-of-QTreeWidgetItem&#160;<i>children</i>)</h3><p>The <i>children</i> argument has it's ownership transferred to Qt.</p><p>Appends the given list of <i>children</i> to the item.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#insertChildren">insertChildren</a>() and
<a href="qtreewidgetitem.html#takeChildren">takeChildren</a>().</p>


<h3 class="fn"><a name="background" /><a href="qbrush.html">QBrush</a> QTreeWidgetItem.background (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the brush used to render the background of the specified
<i>column</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setBackground">setBackground</a>() and
<a href="qtreewidgetitem.html#foreground">foreground</a>().</p>


<h3 class="fn"><a name="backgroundColor" /><a href="qcolor.html">QColor</a> QTreeWidgetItem.backgroundColor (<i>self</i>, int&#160;<i>column</i>)</h3><h3 class="fn"><a name="checkState" /><a href="qt.html#CheckState-enum">Qt.CheckState</a> QTreeWidgetItem.checkState (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the check state of the label in the given
<i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setCheckState">setCheckState</a>() and
<a href="qt.html#CheckState-enum">Qt.CheckState</a>.</p>


<h3 class="fn"><a name="child" /><a href="qtreewidgetitem.html">QTreeWidgetItem</a> QTreeWidgetItem.child (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the item at the given <i>index</i> in the list of the
item's children.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#parent">parent</a>().</p>


<h3 class="fn"><a name="childCount" />int QTreeWidgetItem.childCount (<i>self</i>)</h3><p>Returns the number of child items.</p>


<h3 class="fn"><a name="childIndicatorPolicy" /><a href="qtreewidgetitem.html#ChildIndicatorPolicy-enum">ChildIndicatorPolicy</a> QTreeWidgetItem.childIndicatorPolicy (<i>self</i>)</h3><p>Returns the item indicator policy. This policy decides when the
tree branch expand/collapse indicator is shown.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setChildIndicatorPolicy">setChildIndicatorPolicy</a>().</p>


<h3 class="fn"><a name="clone" /><a href="qtreewidgetitem.html">QTreeWidgetItem</a> QTreeWidgetItem.clone (<i>self</i>)</h3><p>Creates a deep copy of the item and of its children.</p>


<h3 class="fn"><a name="columnCount" />int QTreeWidgetItem.columnCount (<i>self</i>)</h3><p>Returns the number of columns in the item.</p>


<h3 class="fn"><a name="data" />QVariant QTreeWidgetItem.data (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>role</i>)</h3><p>Returns the value for the item's <i>column</i> and
<i>role</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setData">setData</a>().</p>


<h3 class="fn"><a name="emitDataChanged" />QTreeWidgetItem.emitDataChanged (<i>self</i>)</h3><p>Causes the model associated with this item to emit a <a href="qabstractitemmodel.html#dataChanged">dataChanged</a>() signal for
this item.</p>
<p>You normally only need to call this function if you have
subclassed <a href="qtreewidgetitem.html">QTreeWidgetItem</a> and
reimplemented <a href="qtreewidgetitem.html#data">data</a>() and/or
<a href="qtreewidgetitem.html#setData">setData</a>().</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setData">setData</a>().</p>


<h3 class="fn"><a name="flags" /><a href="qt-itemflags.html">Qt.ItemFlags</a> QTreeWidgetItem.flags (<i>self</i>)</h3><p>Returns the flags used to describe the item. These determine
whether the item can be checked, edited, and selected.</p>
<p>The default value for flags is <a href="qt.html#ItemFlag-enum">Qt.ItemIsSelectable</a> | <a href="qt.html#ItemFlag-enum">Qt.ItemIsUserCheckable</a> | <a href="qt.html#ItemFlag-enum">Qt.ItemIsEnabled</a> | <a href="qt.html#ItemFlag-enum">Qt.ItemIsDragEnabled</a>. If the item was
constructed with a parent, flags will in addition contain <a href="qt.html#ItemFlag-enum">Qt.ItemIsDropEnabled</a>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="font" /><a href="qfont.html">QFont</a> QTreeWidgetItem.font (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the font used to render the text in the specified
<i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setFont">setFont</a>().</p>


<h3 class="fn"><a name="foreground" /><a href="qbrush.html">QBrush</a> QTreeWidgetItem.foreground (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the brush used to render the foreground (e.g. text) of
the specified <i>column</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setForeground">setForeground</a>() and
<a href="qtreewidgetitem.html#background">background</a>().</p>


<h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QTreeWidgetItem.icon (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the icon that is displayed in the specified
<i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setIcon">setIcon</a>() and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>


<h3 class="fn"><a name="indexOfChild" />int QTreeWidgetItem.indexOfChild (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>achild</i>)</h3><p>Returns the index of the given <i>child</i> in the item's list
of children.</p>


<h3 class="fn"><a name="insertChild" />QTreeWidgetItem.insertChild (<i>self</i>, int&#160;<i>index</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>child</i>)</h3><p>The <i>child</i> argument has it's ownership transferred to Qt.</p><p>Inserts the <i>child</i> item at <i>index</i> in the list of
children.</p>
<p>If the child has already been inserted somewhere else it wont be
inserted again.</p>


<h3 class="fn"><a name="insertChildren" />QTreeWidgetItem.insertChildren (<i>self</i>, int&#160;<i>index</i>, list-of-QTreeWidgetItem&#160;<i>children</i>)</h3><p>The <i>children</i> argument has it's ownership transferred to Qt.</p><p>Inserts the given list of <i>children</i> into the list of the
item children at <i>index</i> .</p>
<p>Children that have already been inserted somewhere else wont be
inserted.</p>
<p>This function was introduced in Qt 4.1.</p>


<h3 class="fn"><a name="isDisabled" />bool QTreeWidgetItem.isDisabled (<i>self</i>)</h3><p>Returns true if the item is disabled; otherwise returns
false.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="isExpanded" />bool QTreeWidgetItem.isExpanded (<i>self</i>)</h3><p>Returns true if the item is expanded, otherwise returns
false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setExpanded">setExpanded</a>().</p>


<h3 class="fn"><a name="isFirstColumnSpanned" />bool QTreeWidgetItem.isFirstColumnSpanned (<i>self</i>)</h3><p>Returns true if the item is spanning all the columns in a row;
otherwise returns false.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setFirstColumnSpanned">setFirstColumnSpanned</a>().</p>


<h3 class="fn"><a name="isHidden" />bool QTreeWidgetItem.isHidden (<i>self</i>)</h3><p>Returns true if the item is hidden, otherwise returns false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setHidden">setHidden</a>().</p>


<h3 class="fn"><a name="isSelected" />bool QTreeWidgetItem.isSelected (<i>self</i>)</h3><p>Returns true if the item is selected, otherwise returns
false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setSelected">setSelected</a>().</p>


<h3 class="fn"><a name="parent" /><a href="qtreewidgetitem.html">QTreeWidgetItem</a> QTreeWidgetItem.parent (<i>self</i>)</h3><p>Returns the item's parent.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#child">child</a>().</p>


<h3 class="fn"><a name="read" />QTreeWidgetItem.read (<i>self</i>, <a href="qdatastream.html">QDataStream</a>&#160;<i>in</i>)</h3><p>Reads the item from stream <i>in</i>. This only reads data into
a single item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#write">write</a>().</p>


<h3 class="fn"><a name="removeChild" />QTreeWidgetItem.removeChild (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>child</i>)</h3><p>The <i>child</i> argument</p><p>Removes the given item indicated by <i>child</i>. The removed
item will not be deleted.</p>


<h3 class="fn"><a name="setBackground" />QTreeWidgetItem.setBackground (<i>self</i>, int&#160;<i>column</i>, <a href="qbrush.html">QBrush</a>&#160;<i>brush</i>)</h3><p>Sets the background brush of the label in the given
<i>column</i> to the specified <i>brush</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#background">background</a>() and <a href="qtreewidgetitem.html#setForeground">setForeground</a>().</p>


<h3 class="fn"><a name="setBackgroundColor" />QTreeWidgetItem.setBackgroundColor (<i>self</i>, int&#160;<i>column</i>, <a href="qcolor.html">QColor</a>&#160;<i>color</i>)</h3><h3 class="fn"><a name="setCheckState" />QTreeWidgetItem.setCheckState (<i>self</i>, int&#160;<i>column</i>, <a href="qt.html#CheckState-enum">Qt.CheckState</a>&#160;<i>state</i>)</h3><p>Sets the item in the given <i>column</i> check state to be
<i>state</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#checkState">checkState</a>().</p>


<h3 class="fn"><a name="setChildIndicatorPolicy" />QTreeWidgetItem.setChildIndicatorPolicy (<i>self</i>, <a href="qtreewidgetitem.html#ChildIndicatorPolicy-enum">ChildIndicatorPolicy</a>&#160;<i>policy</i>)</h3><p>Sets the item indicator <i>policy</i>. This policy decides when
the tree branch expand/collapse indicator is shown. The default
value is ShowForChildren.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#childIndicatorPolicy">childIndicatorPolicy</a>().</p>


<h3 class="fn"><a name="setData" />QTreeWidgetItem.setData (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>role</i>, QVariant&#160;<i>value</i>)</h3><p>Sets the value for the item's <i>column</i> and <i>role</i> to
the given <i>value</i>.</p>
<p>The <i>role</i> describes the type of data specified by
<i>value</i>, and is defined by the <a href="qt.html#ItemDataRole-enum">Qt.ItemDataRole</a> enum.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#data">data</a>().</p>


<h3 class="fn"><a name="setDisabled" />QTreeWidgetItem.setDisabled (<i>self</i>, bool&#160;<i>disabled</i>)</h3><p>Disables the item if <i>disabled</i> is true; otherwise enables
the item.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#isDisabled">isDisabled</a>() and <a href="qtreewidgetitem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="setExpanded" />QTreeWidgetItem.setExpanded (<i>self</i>, bool&#160;<i>aexpand</i>)</h3><p>Expands the item if <i>expand</i> is true, otherwise collapses
the item.</p>
<p><b>Warning:</b> The <a href="qtreewidgetitem.html">QTreeWidgetItem</a> must be added to the
<a href="qtreewidget.html">QTreeWidget</a> before calling this
function.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#isExpanded">isExpanded</a>().</p>


<h3 class="fn"><a name="setFirstColumnSpanned" />QTreeWidgetItem.setFirstColumnSpanned (<i>self</i>, bool&#160;<i>aspan</i>)</h3><p>Sets the first section to span all columns if <i>span</i> is
true; otherwise all item sections are shown.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#isFirstColumnSpanned">isFirstColumnSpanned</a>().</p>


<h3 class="fn"><a name="setFlags" />QTreeWidgetItem.setFlags (<i>self</i>, <a href="qt-itemflags.html">Qt.ItemFlags</a>&#160;<i>aflags</i>)</h3><p>Sets the flags for the item to the given <i>flags</i>. These
determine whether the item can be selected or modified. This is
often used to disable an item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#flags">flags</a>().</p>


<h3 class="fn"><a name="setFont" />QTreeWidgetItem.setFont (<i>self</i>, int&#160;<i>column</i>, <a href="qfont.html">QFont</a>&#160;<i>afont</i>)</h3><p>Sets the font used to display the text in the given
<i>column</i> to the given <i>font</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#font">font</a>(),
<a href="qtreewidgetitem.html#setText">setText</a>(), and <a href="qtreewidgetitem.html#setForeground">setForeground</a>().</p>


<h3 class="fn"><a name="setForeground" />QTreeWidgetItem.setForeground (<i>self</i>, int&#160;<i>column</i>, <a href="qbrush.html">QBrush</a>&#160;<i>brush</i>)</h3><p>Sets the foreground brush of the label in the given
<i>column</i> to the specified <i>brush</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#foreground">foreground</a>() and <a href="qtreewidgetitem.html#setBackground">setBackground</a>().</p>


<h3 class="fn"><a name="setHidden" />QTreeWidgetItem.setHidden (<i>self</i>, bool&#160;<i>ahide</i>)</h3><p>Hides the item if <i>hide</i> is true, otherwise shows the
item.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#isHidden">isHidden</a>().</p>


<h3 class="fn"><a name="setIcon" />QTreeWidgetItem.setIcon (<i>self</i>, int&#160;<i>column</i>, <a href="qicon.html">QIcon</a>&#160;<i>aicon</i>)</h3><p>Sets the icon to be displayed in the given <i>column</i> to
<i>icon</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#icon">icon</a>(),
<a href="qtreewidgetitem.html#setText">setText</a>(), and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>


<h3 class="fn"><a name="setSelected" />QTreeWidgetItem.setSelected (<i>self</i>, bool&#160;<i>aselect</i>)</h3><p>Sets the selected state of the item to <i>select</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#isSelected">isSelected</a>().</p>


<h3 class="fn"><a name="setSizeHint" />QTreeWidgetItem.setSizeHint (<i>self</i>, int&#160;<i>column</i>, <a href="qsize.html">QSize</a>&#160;<i>size</i>)</h3><p>Sets the size hint for the tree item in the given <i>column</i>
to be <i>size</i>. If no size hint is set, the item delegate will
compute the size hint based on the item data.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#sizeHint">sizeHint</a>().</p>


<h3 class="fn"><a name="setStatusTip" />QTreeWidgetItem.setStatusTip (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>astatusTip</i>)</h3><p>Sets the status tip for the given <i>column</i> to the given
<i>statusTip</i>. <a href="qtreewidget.html">QTreeWidget</a> mouse
tracking needs to be enabled for this feature to work.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#statusTip">statusTip</a>(), <a href="qtreewidgetitem.html#setToolTip">setToolTip</a>(), and <a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>


<h3 class="fn"><a name="setText" />QTreeWidgetItem.setText (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>atext</i>)</h3><p>Sets the text to be displayed in the given <i>column</i> to the
given <i>text</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#text">text</a>(),
<a href="qtreewidgetitem.html#setFont">setFont</a>(), and <a href="qtreewidgetitem.html#setForeground">setForeground</a>().</p>


<h3 class="fn"><a name="setTextAlignment" />QTreeWidgetItem.setTextAlignment (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>alignment</i>)</h3><p>Sets the text alignment for the label in the given <i>column</i>
to the <i>alignment</i> specified (see <a href="qt.html#AlignmentFlag-enum">Qt.AlignmentFlag</a>).</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#textAlignment">textAlignment</a>().</p>


<h3 class="fn"><a name="setTextColor" />QTreeWidgetItem.setTextColor (<i>self</i>, int&#160;<i>column</i>, <a href="qcolor.html">QColor</a>&#160;<i>color</i>)</h3><h3 class="fn"><a name="setToolTip" />QTreeWidgetItem.setToolTip (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>atoolTip</i>)</h3><p>Sets the tooltip for the given <i>column</i> to
<i>toolTip</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#toolTip">toolTip</a>(), <a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a>(), and
<a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>


<h3 class="fn"><a name="setWhatsThis" />QTreeWidgetItem.setWhatsThis (<i>self</i>, int&#160;<i>column</i>, QString&#160;<i>awhatsThis</i>)</h3><p>Sets the "What's This?" help for the given <i>column</i> to
<i>whatsThis</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#whatsThis">whatsThis</a>(), <a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a>(), and
<a href="qtreewidgetitem.html#setToolTip">setToolTip</a>().</p>


<h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QTreeWidgetItem.sizeHint (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the size hint set for the tree item in the given
<i>column</i> (see <a href="qsize.html">QSize</a>).</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setSizeHint">setSizeHint</a>().</p>


<h3 class="fn"><a name="sortChildren" />QTreeWidgetItem.sortChildren (<i>self</i>, int&#160;<i>column</i>, <a href="qt.html#SortOrder-enum">Qt.SortOrder</a>&#160;<i>order</i>)</h3><p>Sorts the children of the item using the given <i>order</i>, by
the values in the given <i>column</i>.</p>
<p><b>Note:</b> This function does nothing if the item is not
associated with a <a href="qtreewidget.html">QTreeWidget</a>.</p>
<p>This function was introduced in Qt 4.2.</p>


<h3 class="fn"><a name="statusTip" />QString QTreeWidgetItem.statusTip (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the status tip for the contents of the given
<i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a>().</p>


<h3 class="fn"><a name="takeChild" /><a href="qtreewidgetitem.html">QTreeWidgetItem</a> QTreeWidgetItem.takeChild (<i>self</i>, int&#160;<i>index</i>)</h3><p>The <i>QTreeWidgetItem</i> result</p><p>Removes the item at <i>index</i> and returns it, otherwise
return 0.</p>


<h3 class="fn"><a name="takeChildren" />list-of-QTreeWidgetItem QTreeWidgetItem.takeChildren (<i>self</i>)</h3><p>The <i>list-of-QTreeWidgetItem</i> result</p><p>Removes the list of children and returns it, otherwise returns
an empty list.</p>
<p>This function was introduced in Qt 4.1.</p>


<h3 class="fn"><a name="text" />QString QTreeWidgetItem.text (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the text in the specified <i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setText">setText</a>().</p>


<h3 class="fn"><a name="textAlignment" />int QTreeWidgetItem.textAlignment (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the text alignment for the label in the given
<i>column</i> (see <a href="qt.html#AlignmentFlag-enum">Qt.AlignmentFlag</a>).</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setTextAlignment">setTextAlignment</a>().</p>


<h3 class="fn"><a name="textColor" /><a href="qcolor.html">QColor</a> QTreeWidgetItem.textColor (<i>self</i>, int&#160;<i>column</i>)</h3><h3 class="fn"><a name="toolTip" />QString QTreeWidgetItem.toolTip (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the tool tip for the given <i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setToolTip">setToolTip</a>().</p>


<h3 class="fn"><a name="treeWidget" /><a href="qtreewidget.html">QTreeWidget</a> QTreeWidgetItem.treeWidget (<i>self</i>)</h3><p>Returns the tree widget that contains the item.</p>


<h3 class="fn"><a name="type" />int QTreeWidgetItem.type (<i>self</i>)</h3><p>Returns the type passed to the <a href="qtreewidgetitem.html">QTreeWidgetItem</a> constructor.</p>


<h3 class="fn"><a name="whatsThis" />QString QTreeWidgetItem.whatsThis (<i>self</i>, int&#160;<i>column</i>)</h3><p>Returns the "What's This?" help for the contents of the given
<i>column</i>.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>


<h3 class="fn"><a name="write" />QTreeWidgetItem.write (<i>self</i>, <a href="qdatastream.html">QDataStream</a>&#160;<i>out</i>)</h3><p>Writes the item to stream <i>out</i>. This only writes data from
one single item.</p>
<p><b>See also</b> <a href="qtreewidgetitem.html#read">read</a>().</p>


<h3 class="fn"><a name="__ge__" />bool QTreeWidgetItem.__ge__ (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>other</i>)</h3><h3 class="fn"><a name="__lt__" />bool QTreeWidgetItem.__lt__ (<i>self</i>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>&#160;<i>other</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.9.5-9eb6aac99275 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.3</td></tr></table></div></address></body></html>